package User;

import BOOK.BookList;
import Operation.IOperation;
import com.sun.xml.internal.ws.policy.privateutil.PolicyUtils;

/**
 * Creat with IntelliJ IDEA
 * Description:图书管理系统使用者 - 父类
 * User:WZW
 * Date:2021-11-27
 * Time:18:11
 */

public abstract class User {
    protected String name;
    protected IOperation[] iOperations;

    public User(String name) {
        this.name = name;
    }

    public abstract int menu();

    //操作
    public void doWork(int chioce, BookList bookList){
        iOperations[chioce].work(bookList);
    }
}
